

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Attributes Dialog - General Tab [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Attribute,Attribute Dialog, General Tab,Attribute Delete,Attribute Derived,Select Attribute Type,Select Attribute Type Dialog,Derived,Derived Attribute,Derived Symbol,Forward Slash,Forward Slash Derived Symbol,Dialog,Dialog Select Attribute Type">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Attributes Dialog - General Tab</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="attributes.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="attributesdetail.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_UIControl">General</span><span class="f_BodyText"> tab of the </span><span class="f_UIControl">Attributes</span><span class="f_BodyText"> dialog is shown below:</span></p>
<p class="p_TextIndentedL2"><img src="attributes-general.png" width="464" height="505" border="0" alt="Attributes-General"></p>
<p class="p_BodyText"><span class="f_BodyText">To review an existing attribute, click on the attribute name in the </span><span class="f_UIControl">Attributes</span><span class="f_BodyText"> panel.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To delete an existing attribute, click on the attribute name in the </span><span class="f_UIControl">Attributes</span><span class="f_BodyText"> panel and click on the </span><span class="f_MenuKeyField">Delete</span><span class="f_BodyText"> button.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To create a new attribute, either:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Click on the </span><span class="f_MenuKeyField">New</span><span class="f_Bulletlist1"> button, or</span></li>
<li><span class="f_Bulletlist1">Click on an existing attribute name in the </span><span class="f_UIControl">Attributes</span><span class="f_Bulletlist1"> panel, and click on the </span><span class="f_MenuKeyField">Copy</span><span class="f_Bulletlist1"> button.</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">Review, edit or complete the fields as indicated in the following table.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" bgcolor="#e3e6ed" style="width:104px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Field</span></p>
</td>
<td valign="top" width="500" bgcolor="#e3e6ed" style="width:500px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Use to</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Name</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display the name of the attribute. For a new attribute, type the name (with no spaces).</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Alias</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display an optional alias for the attribute. If necessary, type in a new alias.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Type</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display the attribute's </span><span class="f_Tabletext" style="font-style: italic;">data</span><span class="f_Tabletext"> type. If necessary, click on the drop-down arrow and select a different type.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">[ ... ]</span><span class="f_Tabletext"> (Select) button</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Open the </span><span class="f_UIControl">Select Attribute Type</span><span class="f_Tabletext"> dialog, which you use to select or define a different attribute type.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Scope</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Define the attribute as </span><span class="f_MenuKeyField">Public</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">Protected</span><span class="f_Tabletext">, </span><span class="f_MenuKeyField">Private</span><span class="f_Tabletext"> or </span><span class="f_MenuKeyField">Package</span><span class="f_Tabletext">. If necessary, click on the drop-down arrow and select a different scope.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Stereotype</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Define the optional stereotype of the attribute. If necessary, either type a different stereotype name or click on the drop-down arrow and select a stereotype.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Containment</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Define the containment type (by reference, by value or not specified). If necessary, click on the drop-down arrow and select a different containment type.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Derived </span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the attribute is a calculated value. If you select this checkbox, the attribute name in the element attributes compartment has the derived symbol (</span><span class="f_Tabletext" style="font-weight: bold;">/</span><span class="f_Tabletext">) as a prefix.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Static</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the attribute is a static member.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Property</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the attribute has <a href="createprop.htm">automatic property creation</a>.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Const</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Indicate that the attribute is a constant.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Is Literal</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">(For Enumeration elements) Defaults to selected, to define the attribute as an enumeration literal. Deselect to define the attribute as a normal element attribute.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">In the </span><span class="f_Tabletext" style="font-style: italic;">Attributes</span><span class="f_Tabletext"> compartment on the diagram, the enumeration literals are listed separately, above the normal attributes. (Ensure that the </span><span class="f_MenuKeyField">Stereotype</span><span class="f_Tabletext"> field for the normal attribute is not set to </span><span class="f_MenuKeyField">enum</span><span class="f_Tabletext">.)</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Initial</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Display an optional initial value. If necessary, type in a new initial value.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="104" style="width:104px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Notes</span></p>
</td>
<td valign="top" width="500" style="width:500px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Enter any free text notes associated with the attribute. You can format the notes text using the </span><span class="f_UIControl"><a href="rich_text_notes_toolbar.htm">Rich Text Notes</a></span><span class="f_Tabletext"> toolbar at the top of the field.</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">To change the position of an attribute in the list in the </span><span class="f_UIControl">Attributes</span><span class="f_BodyText"> panel, click on the </span><span class="f_MenuKeyField">Scroll Up</span><span class="f_BodyText"> or </span><span class="f_MenuKeyField">Scroll Down</span><span class="f_BodyText"> (hand) buttons.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="2" border="0" style="border: none; border-spacing:0px;">
<tr style="text-align:left;vertical-align:bottom;">
<td valign="bottom" width="952" bgcolor="#efeff7" style="width:952px; background-color:#efeff7;"><p class="p_TiporNote" style="border-top: none; border-right: none; border-left: none;"><span class="f_TiporNote">Note:</span></p>
</td>
</tr>
<tr style="text-align:left;">
<td width="952" bgcolor="#f7f7ff" style="width:952px; background-color:#f7f7ff;"><p class="p_TiporNoteText"><span class="f_TiporNoteText">By default, the attributes are listed in alphabetical order. Before changing this sequence, you must deselect the </span><span class="f_MenuKeyField">Sort Features Alphabetically</span><span class="f_TiporNoteText"> checkbox on the </span><span class="f_UIControl">Objects</span><span class="f_TiporNoteText"> page of the </span><span class="f_UIControl">Options</span><span class="f_TiporNoteText"> dialog (</span><span class="f_MenuKeyField">Tools | Options | Objects</span><span class="f_TiporNoteText">).</span></p>
</td>
</tr>
</table>
</div>
<p class="p_BodyText"><span class="f_BodyText">If you have changed the attribute details, click on the </span><span class="f_MenuKeyField">Save</span><span class="f_BodyText"> button to save the changes.</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
